const app = getApp()
function getData(url,data){
return new Promise(function(resolve, reject){
  wx.request({
    url: app.d.getUrl + url,
    data:data,
    method:'post',
    success(res){
      resolve(res)
    },
    fail(err){
      reject(err)
    }
  })
})
}
module.exports = {
  getData:getData
}